#ifndef __NSFQ_EXCEPTION_H__
#define __NSFQ_EXCEPTION_H__

#include <exception>

namespace nsfq{

class CException : public std::exception
{
public:
	CException(const string &sMessage) : m_sMessage( sMessage )
	{}
	
	//should not be missed
	virtual ~CException() throw()
	{}

	virtual const char * what() throw()
	{
		return m_sMessage.c_str();
	}
private:
	string m_sMessage;
};

};
#endif//__NSFQ_EXCEPTION_H__
